@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300);

.frame{
    position: absolute;
    width: 400px;
    height: 400px;
    inset: 0;
    margin: auto;
    border-radius: 2px;
    box-shadow: 1px 2px 10px rgba(0,0,0,0.3);
    background: #3f3f3f;
    color: #415868;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;

}

.modal{
    position: absolute;
    width: 280px;
    height: 210px;
    inset: 0;
    margin: auto;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 4px 8px 12px rgba(0,0,0,0.4);
    text-align: center;
    overflow: hidden;
    animation: show-modal .7s ease-in-out;

    &.hide{
        animation: hide-modal .6s ease-in-out both;
    }

    img{
        margin-top: 24px;
    }

    .title{
        display: block;
        font-size: 18px;
        font-weight: 400;
        margin: 14px 0 5px 0;
        line-height: 24px;
    }

    p{
        font-size: 14px;
        font-weight: 300;margin: 0;
        padding: 0 30px;
        line-height: 19px;
    }

    .button{
        position: absolute;
        height: 40px;
        width: 100%;
        left: 0;
        bottom: 0;
        background-color: #f65656;
        color: #fff;
        line-height: 40px;
        font-size: 14px;
        font-weight: 400;
        cursor: pointer;
        transition: background-color .3s ease-in-out;

        &:hover{
            background-color: #ec3434;
        }
    }
}


@keyframes show-modal {
    0%{
        transform: scale(0);
    }
    60%{
        transform: scale(1.1);
    }
    80%{
        transform: scale(0.95);
    }
    100%{
        transform: scale(1);
    }
}

@keyframes hide-modal {
    0%{
        transform: scale(1);
    }
    20%{
        transform: scale(1.1);
    }
    100%{
        transform: scale(0);
    }
}